// WindSpecsPg.cpp : implementation file
//

#include "StdAfx.h"
#include "StdArx.h"
#include "resource.h"
#include "WindSpecsPg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CWindSpecsPg property page

IMPLEMENT_DYNCREATE(CWindSpecsPg, CPropertyPage)

CWindSpecsPg::CWindSpecsPg() : CPropertyPage(CWindSpecsPg::IDD)
{
	//{{AFX_DATA_INIT(CWindSpecsPg)
	m_nCols = windInfo.m_nCols;
	m_nRows = windInfo.m_nRows;
	m_dHeight = windInfo.m_dWindHt;
	m_dWidth = windInfo.m_dWindWt;
	//}}AFX_DATA_INIT
}

CWindSpecsPg::~CWindSpecsPg()
{
}

void CWindSpecsPg::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CWindSpecsPg)
	DDX_Text(pDX, IDC_EDIT_COLS, m_nCols);
	DDV_MinMaxInt(pDX, m_nCols, 1, 10);
	DDX_Text(pDX, IDC_EDIT_ROWS, m_nRows);
	DDV_MinMaxInt(pDX, m_nRows, 1, 10);
	DDX_Text(pDX, IDC_EDIT_HEIGHT, m_dHeight);
	DDV_MinMaxDouble(pDX, m_dHeight, 10., 300.);
	DDX_Text(pDX, IDC_EDIT_WIDTH, m_dWidth);
	DDV_MinMaxDouble(pDX, m_dWidth, 10., 300.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CWindSpecsPg, CPropertyPage)
	//{{AFX_MSG_MAP(CWindSpecsPg)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CWindSpecsPg message handlers
